package models

import (
	"gitee.com/cjf8134/bbs_serve/internal/pkg/utils/constutil"
)

type Comment struct {
	Model
	Content  string `form:"content" json:"content"`
	ThreadID int    `form:"thread_id" json:"thread_id"`
	Username string `form:"username" json:"username"`
	Avatar   string `form:"avatar" json:"avatar"`
	ZanNum   int    `form:"zan_num" json:"zan_num"`
}

func (Comment) TableName() string {
	return constutil.TablePrefix + "comment"
}
